//
//  FRQAddNFTsSuccessViewController.m
//  FRQBluetoothKit_Example
//
//  Created by admin on 2023/11/15.
//  Copyright © 2023 xuchunhai. All rights reserved.
//

#import "FRQAddNFTsSuccessViewController.h"
#import "AddNFTsSuccessViews.h"
#import "FRQResellerGalleryViewController.h"
@interface FRQAddNFTsSuccessViewController ()
@property (nonatomic,strong) AddNFTsSuccessViews *AddNFTsSuccessView;
@end

@implementation FRQAddNFTsSuccessViewController
- (AddNFTsSuccessViews *)AddNFTsSuccessView{
    if (nil==_AddNFTsSuccessView) {
        _AddNFTsSuccessView=skXibView(@"AddNFTsSuccessViews");
        [self.view addSubview:_AddNFTsSuccessView];
        [_AddNFTsSuccessView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(APP.statusBarHeight);
            make.bottom.mas_equalTo(self.mas_bottomLayoutGuide);
            make.right.left.mas_equalTo(0);
        }];
        @weakify(self)
        [[_AddNFTsSuccessView.btnGo rac_signalForControlEvents:(UIControlEventTouchUpInside)] subscribeNext:^(__kindof UIControl * _Nullable x) {
            @strongify(self)
            FRQResellerGalleryViewController *view=[[FRQResellerGalleryViewController alloc] init];
            view.walletBack=1;
            [self.navigationController pushViewController:view animated:YES];
        }];
        [[_AddNFTsSuccessView.btnBack rac_signalForControlEvents:(UIControlEventTouchUpInside)] subscribeNext:^(__kindof UIControl * _Nullable x) {
            @strongify(self)
            [self.navigationController popViewControllerAnimated:YES];
        }];
    }
    return _AddNFTsSuccessView;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.AddNFTsSuccessView.hidden=NO;
    // Do any additional setup after loading the view.
}
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = YES;
}
- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    self.navigationController.navigationBarHidden = NO;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
